<?php
/**
 * メンバーズネット　ベースコントローラクラス<br />
 *
 * @package apamanshop
 * @author Y.Shibutani
 * @copyright
 */
abstract class Asnnet_BaseController extends Apm_Controller_Base
{
    /** 表示テンプレートパス */
    protected $_display_path = null;


    /** ログインヘルパー */
    protected $_login_helper = null;

    /** ログイン成功ヘルパー */
    protected $_loginok_helper = null;

    /** ログイン失敗ヘルパー */
    protected $_loginng_helper = null;

    /** ASN入力画面ヘルパー */
    protected $_asmemberentry_helper = null;

    /** ASN確認画面ヘルパー */
    protected $_asmembercnf_helper = null;

    /** ASN完了画面ヘルパー */
    protected $_asmembersend_helper = null;

    /** ASN法人お問合せ入力画面ヘルパー */
    protected $_corporateentry_helper = null;

    /** ASN法人お問合せ確認画面ヘルパー */
    protected $_corporatecnf_helper = null;

    /** ASN法人お問合せ完了画面ヘルパー */
    protected $_corporatesend_helper = null;

    /** 店舗問合せ入力画面ヘルパー */
    protected $_shopentry_helper = null;

    /** 店舗問合せ確認画面ヘルパー */
    protected $_shopcnf_helper = null;

    /** 店舗問合せ完了画面ヘルパー */
    protected $_shopsend_helper = null;

    /** 各種お問い合せ入力画面ヘルパー */
    protected $_etcentry_helper = null;

    /** 各種お問い合せ確認画面ヘルパー */
    protected $_etccnf_helper = null;

    /** 各種お問い合せ完了画面ヘルパー */
    protected $_etcsend_helper = null;

    /** 不適切物件お問い合せ入力画面ヘルパー */
    protected $_claimentry_helper = null;

    /** 不適切物件お問い合せ確認画面ヘルパー */
    protected $_claimcnf_helper = null;

    /** 不適切物件お問い合せ完了画面ヘルパー */
    protected $_claimsend_helper = null;

    /** 情報誌のご案内入力画面ヘルパー */
    protected $_magazineentry_helper = null;

    /** 情報誌のご案内確認画面ヘルパー */
    protected $_magazinecnf_helper = null;

    /** 情報誌のご案内完了画面ヘルパー */
    protected $_magazinesend_helper = null;

    /** 物件リクエスト入力画面ヘルパー */
    protected $_requestentry_helper = null;

    /** 物件リクエスト確認画面ヘルパー */
    protected $_requestcnf_helper = null;

    /** 物件リクエスト完了画面ヘルパー */
    protected $_requestsend_helper = null;

    /** 物件お問い合せ入力画面ヘルパー */
    protected $_bukkenentry_helper = null;

    /** 物件お問い合せ確認画面ヘルパー */
    protected $_bukkencnf_helper = null;

    /** 物件お問い合せ完了画面ヘルパー */
    protected $_bukkensend_helper = null;

    /** ヘッダーヘルパー */
    protected $_header_helper = null;

    /** フッターヘルパー */
    protected $_footer_helper = null;

    /** スクリプトーヘルパー */
    protected $_script_helper = null;

    /** スクリプトーヘルパー */
    protected $_script_as_helper = null;

    /** エリア検索ヘルパー */
    protected $_search_helper = null;

    /** パンくずリストヘルパー */
    protected $_topicpath_helper = null;

    /** パンくずリストヘルパー（不適切物件用） */
    protected $_topicpathforclaim_helper = null;

    /** ASNヘッダーヘルパー */
    protected $_asnheader_helper = null;

    /** ASNフッターヘルパー */
    protected $_asnfooter_helper = null;

    /** ASNヘッダーコメント（入力画面）ヘルパー */
    protected $_asncommententry_helper = null;

    /** ASNヘッダーコメント（確認画面）ヘルパー */
    protected $_asncommentcnf_helper = null;

    /** ASN問合せ物件（入力画面、確認画面）ヘルパー */
    protected $_asnbukken_helper = null;

    /** javascript(ログイン) */
    protected $_js_members_helper = null;

    /** javascript(ASNお問合せ) */
    protected $_script_asmember_helper = null;

    /** javascript(ASN法人お問合せ) */
    protected $_script_corporate_helper = null;

    /** javascript(店舗問合せ) */
    protected $_script_shop_helper = null;

    /** javascript(各種お問い合せ) */
    protected $_script_etc_helper = null;

    /** javascript(不適切物件お問い合せ) */
    protected $_script_claim_helper = null;

    /** javascript(情報誌のご案内) */
    protected $_script_magazine_helper = null;

    /** javascript(物件リクエスト) */
    protected $_script_request_helper = null;

    /** javascript(物件お問い合せ) */
    protected $_script_bukken_helper = null;

    /** ASNヘルパー変数 */
    protected $subblock = array();

    /** ASNヘルパー変数 */
    protected $block = array();

    /** ASNヘルパー変数 */
    protected $scriptblock = array();

    /** ASNヘルパー変数 */
    protected $scriptasblock = array();

    /** ASNメンバートップ */
    protected $top_helper = array();

    /** ASNメンバートップJS */
    protected $scriptTopBlock = array();

    /**
     * ヘルパー前処理
     */
    public function preDispatch()
    {

		$this->setXPassThroutgh();
    	$this->_display_path = '';
    	$inquiry_helper_path = APPLICATION_PATH . '/modules/inquiry/views/helpers/';
    	$inquiry_script_path = APPLICATION_PATH.'/modules/inquiry/views/helpers/';
        $common_helper_path = APPLICATION_PATH . '/modules/common/views/helpers/';

    	//=====ヘルパー設定=====
    	//ASログイン画面
        $this->_login_helper = $this->getApmHelper($inquiry_helper_path . 'membersLogin_helper.tpl');
        $this->_loginok_helper = $this->getApmHelper($inquiry_helper_path . 'membersOk_helper.tpl');
        $this->_loginng_helper = $this->getApmHelper($inquiry_helper_path . 'membersNg_helper.tpl');

    	//ASNお問合せ画面
        $this->_asmemberentry_helper = $this->getApmHelper($inquiry_helper_path . 'asmemberEntry_helper.tpl');
        $this->_asmembercnf_helper = $this->getApmHelper($inquiry_helper_path . 'asmemberCnf_helper.tpl');
        $this->_asmembersend_helper = $this->getApmHelper($inquiry_helper_path . 'asmemberSend_helper.tpl');

    	//ASN法人お問合せ画面
        $this->_corporateentry_helper = $this->getApmHelper($inquiry_helper_path . 'corporateEntry_helper.tpl');
        $this->_corporatecnf_helper = $this->getApmHelper($inquiry_helper_path . 'corporateCnf_helper.tpl');
        $this->_corporatesend_helper = $this->getApmHelper($inquiry_helper_path . 'corporateSend_helper.tpl');

        //店舗問合せ入力
        $this->_shopentry_helper = $this->getApmHelper($inquiry_helper_path . 'shopEntry_helper.tpl');
        $this->_shopcnf_helper = $this->getApmHelper($inquiry_helper_path . 'shopCnf_helper.tpl');
        $this->_shopsend_helper = $this->getApmHelper($inquiry_helper_path . 'shopSend_helper.tpl');

        //各種お問い合せ
        $this->_etcentry_helper = $this->getApmHelper($inquiry_helper_path . 'etcEntry_helper.tpl');
        $this->_etccnf_helper = $this->getApmHelper($inquiry_helper_path . 'etcCnf_helper.tpl');
        $this->_etcsend_helper = $this->getApmHelper($inquiry_helper_path . 'etcSend_helper.tpl');

        //不適切物件お問い合せ
        $this->_claimentry_helper = $this->getApmHelper($inquiry_helper_path . 'claimEntry_helper.tpl');
        $this->_claimcnf_helper = $this->getApmHelper($inquiry_helper_path . 'claimCnf_helper.tpl');
        $this->_claimsend_helper = $this->getApmHelper($inquiry_helper_path . 'claimSend_helper.tpl');

    	//情報誌のご案内画面
        $this->_magazineentry_helper = $this->getApmHelper($inquiry_helper_path . 'magazineEntry_helper.tpl');
        $this->_magazinecnf_helper = $this->getApmHelper($inquiry_helper_path . 'magazineCnf_helper.tpl');
        $this->_magazinesend_helper = $this->getApmHelper($inquiry_helper_path . 'magazineSend_helper.tpl');

    	//物件リクエスト画面
        $this->_requestentry_helper = $this->getApmHelper($inquiry_helper_path . 'requestEntry_helper.tpl');
        $this->_requestcnf_helper = $this->getApmHelper($inquiry_helper_path . 'requestCnf_helper.tpl');
        $this->_requestsend_helper = $this->getApmHelper($inquiry_helper_path . 'requestSend_helper.tpl');

    	//物件お問い合せ画面
        $this->_bukkenentry_helper = $this->getApmHelper($inquiry_helper_path . 'bukkenEntry_helper.tpl');
        $this->_bukkencnf_helper = $this->getApmHelper($inquiry_helper_path . 'bukkenCnf_helper.tpl');
        $this->_bukkensend_helper = $this->getApmHelper($inquiry_helper_path . 'bukkenSend_helper.tpl');

        //トップ画面
        $this->_top_helper = $this->getApmHelper(APPLICATION_PATH . '/modules/asnnet/views/helpers/' . 'top_helper.tpl');
        $this->_topScript = $this->getApmHelper($APPLICATION_PATH . '/modules/asnnet/views/helpers/' . 'top_js.tpl');

    	//===不動産賃貸共通===
    	//ヘッダー
		$this->_header_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'header.tpl');
    	//フッター
		$this->_footer_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'footer.tpl');
    	//パンくずリスト
		$this->_topicpath_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'topicpath.tpl');
    	//パンくずリスト（不適切物件用：パス２つまで表示）
		$this->_topicpathforclaim_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'topicpathforclaim.tpl');
    	//エリア検索
		$this->_search_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'search.tpl');
    	//JS設定
		$this->_script_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'script.tpl');
		//AS共通JS設定
		$this->_script_as_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'scriptas.tpl');

    	//===ASN共通===
    	//ASNヘッダー
		$this->_asnheader_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asnheader.tpl');
    	//ASNフッター
		$this->_asnfooter_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asnfooter.tpl');
    	//ASNヘッダーコメント（入力画面）
		$this->_asncommententry_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asncommententry.tpl');
    	//ASNヘッダーコメント（確認画面）
		$this->_asncommentcnf_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asncommentcnf.tpl');
		//ASN問合せ物件（入力画面、確認画面）
		$this->_asnbukken_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asnbukken.tpl');

		//===javascript、css===
        //ASログイン
		$this->_js_members_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'membersLogin.tpl');
        //ASお問合せ
		$this->_script_asmember_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'asmemberScript.tpl');
        //ASN法人お問合せ
		$this->_script_corporate_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'corporateScript.tpl');
        //情報誌のご案内
		$this->_script_magazine_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'magazineScript.tpl');
        //物件リクエスト
		$this->_script_request_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'requestScript.tpl');
        //物件お問合せ
		$this->_script_bukken_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'bukkenScript.tpl');
		//店舗問合せ
		$this->_script_shop_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'shopScript.tpl');
		//各種お問合せ
		$this->_script_etc_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'etcScript.tpl');
		//不適切物件お問合せ
		$this->_script_claim_helper = $this->getApmHelper($inquiry_script_path.'js/'.'claimScript.tpl');
		//=====パラメータの取得=====
        $this->_params = $this->getParameters();

    }

    /**
     * ASN入力画面サブBlock設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockAsmemberEntry()
    {
        	//ASN入力画面
//        	__log_debug('bef asncomment:' . $this->subblock['asncomment']);
	        $this->subblock['asncomment'] = $this->_asncommententry_helper->getBlock($this->_data);
	        $this->subblock['asnbukken'] = $this->_asnbukken_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }

        /**
     * ASN確認画面サブBlock設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockAsmemberCnf()
    {
        	//ASN確認画面
	        $this->subblock['asncomment'] = $this->_asncommentcnf_helper->getBlock($this->_data);
	        $this->subblock['asnbukken'] = $this->_asnbukken_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }
    /**
     * 不動産賃貸共通サブBlock設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockHpCommon()
    {
	        $this->subblock['topicpath'] = $this->_topicpath_helper->getBlock($this->_data);
	        //$this->subblock['search'] = $this->_search_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }

    /**
     * 不動産賃貸共通サブBlock設定（不適切物件お問い合わせ用：パンくずリストパス２つまで）
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockClaimCommon()
    {
	        $this->subblock['topicpath'] = $this->_topicpathforclaim_helper->getBlock($this->_data);
	        //$this->subblock['search'] = $this->_search_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }

    /**
     * 情報誌のご案内(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockMagazineScript()
    {
	        $this->scriptblock['script'] = $this->_script_magazine_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 物件リクエスト(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockRequestScript()
    {
	        $this->scriptblock['script'] = $this->_script_request_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 店舗お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockShopScript()
    {
	        $this->scriptblock['script'] = $this->_script_shop_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 不適切物件お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockClaimScript()
    {
	        $this->scriptblock['script'] = $this->_script_claim_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 各種お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockEtcScript()
    {
	        $this->scriptblock['script'] = $this->_script_etc_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 物件お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockBukkenScript()
    {
	        $this->scriptblock['script'] = $this->_script_bukken_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * ASお問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockAsmemberScript()
    {
	        $this->scriptasblock['scriptas'] = $this->_script_asmember_helper->getBlock($this->_data);
	        $this->_data['scriptasblock'] = $this->scriptasblock;
    }

    /**
     * AS法人お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockCorporateScript()
    {
	        $this->scriptasblock['scriptas'] = $this->_script_corporate_helper->getBlock($this->_data);
	        $this->_data['scriptasblock'] = $this->scriptasblock;
    }

    /**
     * 店舗お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockMain($helper,$js)
    {
	        $block['main'] = (is_string($helper)) ? $helper : $helper->getBlock($this->_data);
	        $block['js'] = (is_string($js)) ? $helper : $helper->getBlock($this->_data);

            $this->_data['block'] = $block;
    }

    /**
     * 各Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlock($helper = '')
    {
        // メインBLOCK設定（引数が無い場合は空文字で設定）
        $this->block['main'] = (is_string($helper)) ? $helper : $helper->getBlock($this->_data);

        // ログイン
        $this->block['header'] = $this->_header_helper->getBlock($this->_data);
        $this->block['footer'] = $this->_footer_helper->getBlock($this->_data);

        //ASN
        $this->block['asnheader'] = $this->_asnheader_helper->getBlock($this->_data);
        $this->block['asnfooter'] = $this->_asnfooter_helper->getBlock($this->_data);

        // javascript
        $this->block['js_members'] = $this->_js_members_helper->getBlock($this->_data);
        $this->block['script_as'] = $this->_script_as_helper->getBlock($this->_data);
        $this->block['script_hp'] = $this->_script_helper->getBlock($this->_data);
        $this->_data['block'] = $this->block;
    }

	/**
	 * 問い合わせ画面の共通パラメータ設定
	 *
	 */
	protected function setCommonParams()
	{
		$CntctWayFax = (array_key_exists('CntctWayFax', $this->_params)) ? $this->_params['CntctWayFax'] : null;
		$CntctWayMail = (array_key_exists('CntctWayMail', $this->_params)) ? $this->_params['CntctWayMail'] : null;
		$CntctWayTel = (array_key_exists('CntctWayTel', $this->_params)) ? $this->_params['CntctWayTel'] : null;
		$CntctWayCd = (array_key_exists('CntctWayCd', $this->_params)) ? $this->_params['CntctWayCd'] : null;
		$CntctWayStr = (array_key_exists('CntctWayStr', $this->_params)) ? $this->_params['CntctWayStr'] : null;
		$Fax = (array_key_exists('Fax', $this->_params)) ? $this->_params['Fax'] : null;
		$Inquiry1 = (array_key_exists('Inquiry1', $this->_params)) ? $this->_params['Inquiry1'] : null;
		$Inquiry2 = (array_key_exists('Inquiry2', $this->_params)) ? $this->_params['Inquiry2'] : null;
		$Inquiry3 = (array_key_exists('Inquiry3', $this->_params)) ? $this->_params['Inquiry3'] : null;
		$Inquiry4 = (array_key_exists('Inquiry4', $this->_params)) ? $this->_params['Inquiry4'] : null;
		$Inquiry5 = (array_key_exists('Inquiry5', $this->_params)) ? $this->_params['Inquiry5'] : null;
		$Mail = (array_key_exists('Mail', $this->_params)) ? $this->_params['Mail'] : null;
		$MailMgznFlg = (array_key_exists('MailMgznFlg', $this->_params)) ? $this->_params['MailMgznFlg'] : null;
		$Name = (array_key_exists('Name', $this->_params)) ? $this->_params['Name'] : null;
		$NameMei = (array_key_exists('NameMei', $this->_params)) ? $this->_params['NameMei'] : null;
		$NameSei = (array_key_exists('NameSei', $this->_params)) ? $this->_params['NameSei'] : null;
		$KanaSei = (array_key_exists('KanaSei', $this->_params)) ? $this->_params['KanaSei'] : null;
		$KanaMei = (array_key_exists('KanaMei', $this->_params)) ? $this->_params['KanaMei'] : null;
		$NeedTimeKbn = (array_key_exists('NeedTimeKbn', $this->_params)) ? $this->_params['NeedTimeKbn'] : null;
		$PlaceKbn = (array_key_exists('PlaceKbn', $this->_params)) ? $this->_params['PlaceKbn'] : null;
		$ShopCd = (array_key_exists('ShopCd', $this->_params)) ? $this->_params['ShopCd'] : null;
		$Tel = (array_key_exists('Tel', $this->_params)) ? $this->_params['Tel'] : null;
		$UseKbn = (array_key_exists('UseKbn', $this->_params)) ? $this->_params['UseKbn'] : null;
		$SrhKbn = (array_key_exists('SrhKbn', $this->_params)) ? $this->_params['SrhKbn'] : null;
		$OemCd = (array_key_exists('OemCd', $this->_params)) ? $this->_params['OemCd'] : null;
		$Url = (array_key_exists('Url', $this->_params)) ? $this->_params['Url'] : null;
		$Company = (array_key_exists('Company', $this->_params)) ? $this->_params['Company'] : null;
		$CtgryCd = (array_key_exists('CtgryCd', $this->_params)) ? $this->_params['CtgryCd'] : null;
		$ClaimTgtKbn = (array_key_exists('ClaimTgtKbn', $this->_params)) ? $this->_params['ClaimTgtKbn'] : null;
		$Mrrg = (array_key_exists('Mrrg', $this->_params)) ? $this->_params['Mrrg'] : null;
		$MrrgNm = (array_key_exists('MrrgNm', $this->_params)) ? $this->_params['MrrgNm'] : null;
		$BuyExp = (array_key_exists('BuyExp', $this->_params)) ? $this->_params['BuyExp'] : null;
		$BuyExpNm = (array_key_exists('BuyExpNm', $this->_params)) ? $this->_params['BuyExpNm'] : null;
		$Comment = (array_key_exists('Comment', $this->_params)) ? $this->_params['Comment'] : null;
		$Other = (array_key_exists('Other', $this->_params)) ? $this->_params['Other'] : null;
		$SiteKbn = (array_key_exists('SiteKbn', $this->_params)) ? $this->_params['SiteKbn'] : null;
		$Address = (array_key_exists('Address', $this->_params)) ? $this->_params['Address'] : null;
		$Address1 = (array_key_exists('Address1', $this->_params)) ? $this->_params['Address1'] : null;
		$Address2 = (array_key_exists('Address2', $this->_params)) ? $this->_params['Address2'] : null;
		$JobKbn = (array_key_exists('JobKbn', $this->_params)) ? $this->_params['JobKbn'] : null;
		$JobNm = (array_key_exists('JobNm', $this->_params)) ? $this->_params['JobNm'] : null;
		$Sex = (array_key_exists('Sex', $this->_params)) ? $this->_params['Sex'] : null;
		$SexNm = (array_key_exists('SexNm', $this->_params)) ? $this->_params['SexNm'] : null;
		$Charge = (array_key_exists('Charge', $this->_params)) ? $this->_params['Charge'] : null;
		$ChargeNm = (array_key_exists('ChargeNm', $this->_params)) ? $this->_params['ChargeNm'] : null;
		$ChargeNmKana = (array_key_exists('ChargeNmKana', $this->_params)) ? $this->_params['ChargeNmKana'] : null;
		$TenpoNm = (array_key_exists('TenpoNm', $this->_params)) ? $this->_params['TenpoNm'] : null;
		$TenpoMail = (array_key_exists('TenpoMail', $this->_params)) ? $this->_params['TenpoMail'] : null;
		$PrefCd = (array_key_exists('PrefCd', $this->_params)) ? $this->_params['PrefCd'] : null;
		$PrefName = (array_key_exists('PrefName', $this->_params)) ? $this->_params['PrefName'] : null;
		$AgeKbn = (array_key_exists('AgeKbn', $this->_params)) ? $this->_params['AgeKbn'] : null;
		$AgeNm = (array_key_exists('AgeNm', $this->_params)) ? $this->_params['AgeNm'] : null;
		$Busho = (array_key_exists('Busho', $this->_params)) ? $this->_params['Busho'] : null;
		$BukkenCd = (array_key_exists('BukkenCd', $this->_params)) ? $this->_params['BukkenCd'] : null;
		$Matrix = (array_key_exists('Matrix', $this->_params)) ? $this->_params['Matrix'] : null;
		$Yakushoku = (array_key_exists('Yakushoku', $this->_params)) ? $this->_params['Yakushoku'] : null;
		$Zip = (array_key_exists('Zip', $this->_params)) ? $this->_params['Zip'] : null;
		$Zip1 = (array_key_exists('Zip1', $this->_params)) ? $this->_params['Zip1'] : null;
		$Zip2 = (array_key_exists('Zip2', $this->_params)) ? $this->_params['Zip2'] : null;
		$TargetKbn = (array_key_exists('TargetKbn', $this->_params)) ? $this->_params['TargetKbn'] : null;
		$TargetNm = (array_key_exists('TargetNm', $this->_params)) ? $this->_params['TargetNm'] : null;
		$ComId = (array_key_exists('ComId', $this->_params)) ? $this->_params['ComId'] : null;
		$HikkoshiRiyuuText = (array_key_exists('HikkoshiRiyuuText', $this->_params)) ? $this->_params['HikkoshiRiyuuText'] : null;
		$HikkoshiRiyuu = (array_key_exists('HikkoshiRiyuu', $this->_params)) ? $this->_params['HikkoshiRiyuu'] : null;
		$HikkoshiRiyuuSonota = (array_key_exists('HikkoshiRiyuuSonota', $this->_params)) ? $this->_params['HikkoshiRiyuuSonota'] : null;
		$NeedTokushuuText = (array_key_exists('NeedTokushuuText', $this->_params)) ? $this->_params['NeedTokushuuText'] : null;
		$NeedTokushuu = (array_key_exists('NeedTokushuu', $this->_params)) ? $this->_params['NeedTokushuu'] : null;
		$NeedTokushuuSonota = (array_key_exists('NeedTokushuuSonota', $this->_params)) ? $this->_params['NeedTokushuuSonota'] : null;
		$KounyuuKeikenText = (array_key_exists('KounyuuKeikenText', $this->_params)) ? $this->_params['KounyuuKeikenText'] : null;
		$KounyuuKeiken = (array_key_exists('KounyuuKeiken', $this->_params)) ? $this->_params['KounyuuKeiken'] : null;
		$SonotaZassiText = (array_key_exists('SonotaZassiText', $this->_params)) ? $this->_params['SonotaZassiText'] : null;
		$SonotaZassi = (array_key_exists('SonotaZassi', $this->_params)) ? $this->_params['SonotaZassi'] : null;
		$SonotaZassiName = (array_key_exists('SonotaZassiName', $this->_params)) ? $this->_params['SonotaZassiName'] : null;
		$SoufuKibouJyouhoushiText = (array_key_exists('SoufuKibouJyouhoushiText', $this->_params)) ? $this->_params['SoufuKibouJyouhoushiText'] : null;
		$SoufuKibouJyouhoushi = (array_key_exists('SoufuKibouJyouhoushi', $this->_params)) ? $this->_params['SoufuKibouJyouhoushi'] : null;
		$KikkakeText = (array_key_exists('KikkakeText', $this->_params)) ? $this->_params['KikkakeText'] : null;
		$Kikkake = (array_key_exists('Kikkake', $this->_params)) ? $this->_params['Kikkake'] : null;
		$KikkakeSonota = (array_key_exists('KikkakeSonota', $this->_params)) ? $this->_params['KikkakeSonota'] : null;
		$JyuushiKoumokuText = (array_key_exists('JyuushiKoumokuText', $this->_params)) ? $this->_params['JyuushiKoumokuText'] : null;
		$JyuushiKoumoku = (array_key_exists('JyuushiKoumoku', $this->_params)) ? $this->_params['JyuushiKoumoku'] : null;
		$JyuushiKoumokuSonota = (array_key_exists('JyuushiKoumokuSonota', $this->_params)) ? $this->_params['JyuushiKoumokuSonota'] : null;
		$FavFlg = (array_key_exists('FavFlg', $this->_params)) ? $this->_params['FavFlg'] : null;
		$Did = (array_key_exists('Did', $this->_params)) ? $this->_params['Did'] : null;
		$Sid = (array_key_exists('Sid', $this->_params)) ? $this->_params['Sid'] : null;
		$UAKbn = (array_key_exists('UAKbn', $this->_params)) ? $this->_params['UAKbn'] : null;
		$CampaignLocationFlg = (array_key_exists('CampaignLocationFlg', $this->_params)) ? $this->_params['CampaignLocationFlg'] : null;
		$TimeStr = (array_key_exists('TimeStr', $this->_params)) ? $this->_params['TimeStr'] : null;
	}

//----------------------------------ここから以下は使用していない----------------
    /**
     * タイトルを設定
     * @see Apm_Controller_Base::setTitle()
     */
    protected function setTitle($title)
    {
    	parent::setTitle($title);
    	$this->_data['title'] = $title;
    }

    /**
     * フッタコメントを設定
     * @see Apm_Controller_Base::setFooterTitle()
     */
    protected function setFooterTitle($footerTitle)
    {
    	parent::setTitle($footerTitle);
    	$this->_data['title'] = $footerTitle;
    }
    /**
     * メタデータ 記述内容を設定
     * @see Apm_Controller_Base::setDescription()
     */
    protected function setDescription($description)
    {
    	parent::setDescription($description);
    	$this->_data['description'] = $description;
    }

    /**
     * メタデータ キーワードを設定
     * @see Apm_Controller_Base::setKeywords()
     */
    protected function setKeywords($keywords)
    {
    	parent::setKeywords($keywords);
    	$this->_data['keywords'] = $keywords;
    }

    /**
     * ヘッダータイトルを設定
     *
     * @param string $headerTitle ヘッダタイトル
     */
    protected function setHeaderTitle($headerTitle)
    {
    	$this->_data['headerTitle'] = $headerTitle;
    }

    /**
     * コンテンツタイトルを設定
     *
     * @param string $contentsTitle コンテンツタイトル
     */
    protected function setContentsTitle($contentsTitle)
    {
    	$this->_data['contentsTitle'] = $contentsTitle;
    }

    /**
     * bodyタグのonloadに追加するスクリプト
     *
     * @param string $script スクリプト
     */
    protected function setOnLoadBodyScript($script)
    {
		$this->_data['bodyOnloadScript'] = $script;
    }

    /**
     * 問い合わせAPIへのリクエストを行う
     *
     * @param string $apiCtlName 対象APIコントローラ名
     * @param array $apiCtlName 対象APIコントローラ名
     */
    protected function callInquiryApi($apiCtlName,$params)
    {
__log_debug('★Inquiry_BaseController開始★' );
		//HTTPクライアント
		require_once 'Zend/Http/Client.php';

		$cli = new Zend_Http_Client($this->_config['apm']['baseurl'].'mypage/inquiry/' . $apiCtlName,
		array(
			'maxredirects' => 1,
			'timeout' => 60
		)
		);
		$cli->setParameterPost(
			array(
				'CntctWayCd'=>$params['CntctWayCd'],
				'CntctWayStr'=>$params['CntctWayStr'],
				'Fax'=>$params['Fax'],
				'Inquiry1'=>$params['Inquiry1'],
				'Inquiry2'=>$params['Inquiry2'],
				'Inquiry3'=>$params['Inquiry3'],
				'Inquiry4'=>$params['Inquiry4'],
				'Inquiry5'=>$params['Inquiry5'],
				'Mail'=>$params['Mail'],
				'MailMgznFlg'=>$params['MailMgznFlg'],
				'Name'=>$params['Name'],
				'NameMei'=>$params['NameMei'],
				'NameSei'=>$params['NameSei'],
				'KanaSei'=>$params['KanaSei'],
				'KanaMei'=>$params['KanaMei'],
				'NeedTimeKbn'=>$params['NeedTimeKbn'],
				'PlaceKbn'=>$params['PlaceKbn'],
				'ShopCd'=>$params['ShopCd'],
				'Tel'=>$params['Tel'],
				'UseKbn'=>$params['UseKbn'],
				'SrhKbn'=>$params['SrhKbn'],
				'OemCd'=>$params['OemCd'],
				'Url'=>$params['Url'],
				'Company'=>$params['Company'],
				'CtgryCd'=>$params['CtgryCd'],
				'ClaimTgtKbn'=>$params['ClaimTgtKbn'],
				'Mrrg'=>$params['Mrrg'],
				'MrrgNm'=>$params['MrrgNm'],
				'BuyExp'=>$params['BuyExp'],
				'BuyExpNm'=>$params['BuyExpNm'],
				'Comment'=>$params['Comment'],
				'Other'=>$params['Other'],
				'SiteKbn'=>$params['SiteKbn'],
				'Address'=>$params['Address'],
				'Address1'=>$params['Address1'],
				'Address2'=>$params['Address2'],
				'JobKbn'=>$params['JobKbn'],
				'JobNm'=>$params['JobNm'],
				'Sex'=>$params['Sex'],
				'SexNm'=>$params['SexNm'],
				'Charge'=>$params['Charge'],
				'ChargeNm'=>$params['ChargeNm'],
				'ChargeNmKana'=>$params['ChargeNmKana'],
				'TenpoNm'=>$params['TenpoNm'],
				'TenpoMail'=>$params['TenpoMail'],
				'PrefCd'=>$params['PrefCd'],
				'PrefName'=>$params['PrefName'],
				'AgeKbn'=>$params['AgeKbn'],
				'AgeNm'=>$params['AgeNm'],
				'Busho'=>$params['Busho'],
				'BukkenCd'=>$params['BukkenCd'],
				'Matrix'=>$params['Matrix'],
				'Yakushoku'=>$params['Yakushoku'],
				'Zip'=>$params['Zip'],
				'Zip1'=>$params['Zip1'],
				'Zip2'=>$params['Zip2'],
				'AllTenpoNm'=>$params['AllTenpoNm'],
				'TargetKbn'=>$params['TargetKbn'],
				'TargetNm'=>$params['TargetNm'],
				'ComId'=>$params['ComId'],
				'HikkoshiRiyuuText'=>$params['HikkoshiRiyuuText'],
				'HikkoshiRiyuu'=>$params['HikkoshiRiyuu'],
				'HikkoshiRiyuuSonota'=>$params['HikkoshiRiyuuSonota'],
				'NeedTokushuuText'=>$params['NeedTokushuuText'],
				'NeedTokushuu'=>$params['NeedTokushuu'],
				'NeedTokushuuSonota'=>$params['NeedTokushuuSonota'],
				'KounyuuKeikenText'=>$params['KounyuuKeikenText'],
				'KounyuuKeiken'=>$params['KounyuuKeiken'],
				'SonotaZassiText'=>$params['SonotaZassiText'],
				'SonotaZassi'=>$params['SonotaZassi'],
				'SonotaZassiName'=>$params['SonotaZassiName'],
				'SoufuKibouJyouhoushiText'=>$params['SoufuKibouJyouhoushiText'],
				'SoufuKibouJyouhoushi'=>$params['SoufuKibouJyouhoushi'],
				'KikkakeText'=>$params['KikkakeText'],
				'Kikkake'=>$params['Kikkake'],
				'KikkakeSonota'=>$params['KikkakeSonota'],
				'JyuushiKoumokuText'=>$params['JyuushiKoumokuText'],
				'JyuushiKoumoku'=>$params['JyuushiKoumoku'],
				'JyuushiKoumokuSonota'=>$params['JyuushiKoumokuSonota'],
				'FavFlg'=>$params['FavFlg'],
				'Did'=>$params['Did'],
				'Sid'=>$params['Sid'],
				'UAKbn'=>$params['UAKbn'],
				'CampaignLocationFlg'=>$params['CampaignLocationFlg'],
				'TimeStr'=>$params['TimeStr'],
				'StCd '=>$params['StCd '],
				'RailCd'=>$params['RailCd'],
				'CityCd'=>$params['CityCd'],
				'SectCd'=>$params['SectCd'],
				'ShikiReiZero'=>$params['ShikiReiZero'],
				'FuroOp4'=>$params['FuroOp4'],
				'FuroOp3'=>$params['FuroOp3'],
				'FuroOp1'=>$params['FuroOp1'],
				'FuroOp2'=>$params['FuroOp2'],
				'KcnOp1'=>$params['KcnOp1'],
				'KcnOp2'=>$params['KcnOp2'],
				'WagamaOp8'=>$params['WagamaOp8'],
				'WagamaOp1'=>$params['WagamaOp1'],
				'WagamaOp7'=>$params['WagamaOp7'],
				'WagamaOp2'=>$params['WagamaOp2'],
				'WagamaOp6'=>$params['WagamaOp6'],
				'WagamaOp4'=>$params['WagamaOp4'],
				'WagamaOp5'=>$params['WagamaOp5'],
				'WagamaOp3'=>$params['WagamaOp3'],
				'WagamaOp9'=>$params['WagamaOp9'],
				'Ekitoho'=>$params['Ekitoho'],
				'OkugaiOp2'=>$params['OkugaiOp2'],
				'OkugaiOp3'=>$params['OkugaiOp3'],
				'OkugaiOp8'=>$params['OkugaiOp8'],
				'OkugaiOp4'=>$params['OkugaiOp4'],
				'OkugaiOp5'=>$params['OkugaiOp5'],
				'OkugaiOp7'=>$params['OkugaiOp7'],
				'OkugaiOp1'=>$params['OkugaiOp1'],
				'OkugaiOp6'=>$params['OkugaiOp6'],
				'Madori12'=>$params['Madori12'],
				'Madori11'=>$params['Madori11'],
				'Madori14'=>$params['Madori14'],
				'Madori10'=>$params['Madori10'],
				'Madori22'=>$params['Madori22'],
				'Madori21'=>$params['Madori21'],
				'Madori24'=>$params['Madori24'],
				'Madori32'=>$params['Madori32'],
				'Madori31'=>$params['Madori31'],
				'Madori34'=>$params['Madori34'],
				'Madori41'=>$params['Madori41'],
				'SitunaiOp2'=>$params['SitunaiOp2'],
				'SitunaiOp6'=>$params['SitunaiOp6'],
				'SitunaiOp3'=>$params['SitunaiOp3'],
				'SitunaiOp1'=>$params['SitunaiOp1'],
				'SitunaiOp5'=>$params['SitunaiOp5'],
				'SitunaiOp4'=>$params['SitunaiOp4'],
				'Senyu1'=>$params['Senyu1'],
				'Senyu2'=>$params['Senyu2'],
				'Built'=>$params['Built'],
				'Tinryo1'=>$params['Tinryo1'],
				'Tinryo2'=>$params['Tinryo2'],
				'TinryoJouken2'=>$params['TinryoJouken2'],
				'FreeRent'=>$params['FreeRent'],
				'HeyaWari'=>$params['HeyaWari'],
				'Syubetu1'=>$params['Syubetu1'],
				'Syubetu6'=>$params['Syubetu6'],
				'Syubetu7'=>$params['Syubetu7'],
				'Syubetu2'=>$params['Syubetu2'],
				'Syubetu3'=>$params['Syubetu3'],
				'Syubetu4'=>$params['Syubetu4'],
				'Syubetu5'=>$params['Syubetu5']
			)
		);
__log_debug('★Inquiry_BaseController途中１★' );
		$response = $cli->request(Zend_Http_Client::POST);
		$resArray = json_decode($response->getBody(), true);
__log_debug('★Inquiry_BaseController途中２★' );
		$result = $resArray["api_result"]["result"];
__log_debug('★Inquiry_BaseController終了★' );
		return $result;
    }

    function setBase() {

    	// 住友重機の場合のみタイトル変更
//		If pstr_SHATAKU_SUMITOMOJYUKI = $result[0]['M86_COMPANY_CD'] Then
//		strBrowserTitle = "";
//	Else
//		strBrowserTitle = "社宅ネット"
//	End If
//'----- INSERT End 2009/10/20 ブラウザタイトル可変 SS Ishii-n -----
//
//			//===ユーザが存在した場合===
//			//=====ブロック設定=====
//			$this->_data['strComGenruFlg'] = $result[0]['M86_GENRU_FLAG'];
//			$this->_data['strComName'] = $result[0]['M86_COMPANY_NAME'];
//			$this->_data['strBrowserTitle'] = $result[0]['M86_GENRU_FLAG'];
//			$this->_data['strComId'] = $result[0]['M86_GENRU_FLAG'];
//			echo $this->_data['strComGenruFlg'];
//		}
//
//
//
//    }
//
    }


}
?>
